@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION

SET PDB_ROOT=rdata\NMR_PDB
SET PDB_ID=%1

IF /I "%PDB_ID%"=="" GOTO HELP

FOR /R %PDB_ROOT% %%f IN (*%PDB_ID%*.pdb.gz) DO ECHO ^>^> %%f
GOTO EOF

:HELP
ECHO Usage: %~nx0 ^<pdb_id^>
ECHO   e.g. %~nx0 1NMW
ECHO   e.g. %~nx0 MW

:EOF
